home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20010921-20020314
/
000224_fdc@columbia.edu_Sat Dec 8 12:21:53 EST 2001.msg
< prev
next >
Wrap
Text File
|
2002-03-13
|
2KB
|
40 lines
Article: 13049 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.os.linux.misc,comp.protocols.kermit.misc
Subject: Re: Can't open("/dev/tty",O_RDWR) in RH7.1/ia64
Date: 8 Dec 2001 12:21:29 -0500
Organization: Columbia University
Lines: 23
Message-ID: <9uti6p$9s6$1@watsol.cc.columbia.edu>
References: <9uofq3$otq$1@watsol.cc.columbia.edu> <3C101149.5050103@redhat.com> <9uql37$m2c$1@watsol.cc.columbia.edu> <uher2fz34.fsf@worldnet.att.net>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1007832091 21467 128.59.39.139 (8 Dec 2001 17:21:31 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 8 Dec 2001 17:21:31 GMT
Xref: newsmaster.cc.columbia.edu comp.os.linux.misc:529941 comp.protocols.kermit.misc:13049
In article <uher2fz34.fsf@worldnet.att.net>,
Thomas A. Horsley <Tom.Horsley@worldnet.att.net> wrote:
: ...
: Ah! You are using telnet. I submitted a bug to redhat's bugzilla a few
: weeks ago about telnetd very seldom (if ever) providing a controlling
: tty, and lots of other people piled on saying they have the same problem.
: Don't know if there is a fix, but I have found that sshd doesn't have
: the problem. If you can get into the linux box via ssh, you should have
: a proper controlling tty, and maybe even a /dev/tty that works.
:
Except that the object isn't to log in to Red Hat 7.2, it's to make Kermit
file transfer work. When in remote mode (e.g. on the far end of a Telnet
connection), Kermit has to open "/dev/tty" so it can do ioctl's or whatever
on the file descriptor to put it into and out of raw mode. In this case I
can't open /dev/tty ("No such device or address"), so if instead I just use
0 as the file descriptor, subsequent ioctl's (or tcsetattr(), whatever)
fail with "Bad file descriptor". Anyway, as others have pointed out by
now, there's a bug in Red Hat 7.x /bin/login (for which a patch exists) and
the problem supposedly does not occur if you use bash instead of csh or
tcsh (but I can't verify this today because the site is down or off the
net).
- Frank